// Section.cpp: implementation of the CSection class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "test.h"
#include "Section.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSection::CSection()
{
	this->width  = 10;
	this->height = 10;
}

void CSection::SetNum(int num)
{
	this->num = num;
}

int  CSection::GetNum()
{
	return num;
}

void CSection::SetPos(CPoint &pos)
{
	this->pos.x = pos.x;
	this->pos.y = pos.y;
}

CPoint& CSection::GetPos()
{
	return this->pos;
}

void CSection::Draw(CDC *pDC)
{
	int x;
	int y;
	
	x = this->pos.x;
	y = this->pos.y;
	
	pDC->Rectangle(x, y, x + 10, y + 10);
}

CSection::~CSection()
{

}
